package com.niiwoo.civet.account.service.local;

import com.niiwoo.civet.account.dao.entity.BankType;
import com.niiwoo.civet.account.dao.mapper.BankTypeMapperExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 银行类型本地服务
 */
@Service
public class BankTypeService {

    @Autowired
    BankTypeMapperExt bankTypeMapperExt;

    /**
     * 获取银行类型
     *
     * @param bankCode 银行代码
     */
    public BankType getBankTypeByCode(String bankCode) {
        return bankTypeMapperExt.selectBankTypeByCode(bankCode);
    }

    /**
     * 通过id获取银行类型
     * @param id
     * @return
     */
    public BankType queryBankTypeById(Long id){return bankTypeMapperExt.selectByPrimaryKey(id);}
}
